Command:
SetDIP_2
Synopsis:
SetDIP_2 $nIndex $bState
Arguments:

$nIndex - An unsigned integer specifying the zero-based index of the digital output to address. This index must be in the 0 to 31 range. Values outside this range will produce a Tcl error.

$bState - An unsigned integer functioning as a boolean. The function distinguishes between the values zero and non-zero. Zero will set the digital output to low potential. Non-zero will set the digital output to high potential.

Returns:
Nothing.
Availability:
Since version 01.01.02.

The SetDIP_2 command sets the state of one of the up to 32 digital outputs on the 2nd I/O card of the Keithley multimeter (if installed). If no Keithley multimeter is present or if no 2nd I/O card is installed, usage of this function produces a Tcl error. If no such error occurs, you can safely assume that the operation succeeded.


Example:
# In this example we're going to set the 4th digital output on the 2nd card to high potential.
set nIndex 5
set bState 1

SetDIP_2 $nIndex $bState # The script will fail with a Tcl error if this doesn't work for some reason.

# If we reach this line at all, we know it worked. Otherwise a Tcl error would have prevented us from getting so far in 
# the first place.